package com.example.shiro.repository;

import com.example.shiro.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/** @ Author ：jujh @ Date ：Created in 17:14 2018/10/29 @ Description： */
public interface UserRepository extends JpaRepository<User, String> {

  User findByName(String name);

  User findByNameAndPassword(String name,String password);
}
